EM

[Encerrado] AS MAGIAS DO MEU DBO ESTAO BUGADAS

Por Emanueldk, 26 de abr. de 2018 em Tópicos Sem Resposta

10
1.3k
EmanueldkE
26 de abril de 2018 às 21:46

entao, a base do dbo que eu baixei é boa, mais os kamehameha todos "TODOS" que existem no meu dbo estao sao efeitos "sem animaçao" voce usa ele normal, hita normal, mais nao sai o desenho dele, alguem que manja o que é isso ta afim de me ajudar?

gabriel28G
26 de abril de 2018 às 22:45

@Emanueldk

Tem algum erro no distro?
Posta um script pra dar uma olhada e ver o que é.

EmanueldkE
27 de abril de 2018 às 07:46
9 horas atrás, gabriel28 disse:

@Emanueldk

Tem algum erro no distro?
Posta um script pra dar uma olhada e ver o que é.

local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 212)
 
local arr1 = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 2, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
}
 
local area1 = createCombatArea(arr1)
setCombatArea(combat1, area1)
 
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 212)

local arr2 = {
{0, 0, 0, 0, 0},
{0, 0, 0, 0, 0},
{0, 1, 0, 0, 0},
{2, 0, 0, 0, 0},
{0, 0, 0, 0, 0},
{0, 0, 0, 0, 0},
}
 
local area2 = createCombatArea(arr2)
setCombatArea(combat2, area2)
 
local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, 213)
 
local arr3 = {
{0, 0, 0, 0, 0},
{0, 0, 0, 2, 0},
{0, 0, 1, 0, 0},
{0, 0, 0, 0, 0},
{0, 0, 0, 0, 0},
{0, 0, 0, 0, 0},
}
 
local area3 = createCombatArea(arr3)
setCombatArea(combat3, area3)
 
local combat4 = createCombatObject()
setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat4, COMBAT_PARAM_EFFECT, 213)
 
local arr4 = {
{0, 0, 1, 0, 0},
{0, 0, 0, 0, 0},
{0, 0, 0, 0, 0},
{0, 0, 0, 0, 0},
{0, 0, 0, 0, 0},
{0, 0, 0, 0, 0},
{0, 0, 0, 2, 0},
}
 
local area4 = createCombatArea(arr4)
setCombatArea(combat4, area4)

local combat5 = createCombatObject()
setCombatParam(combat5, COMBAT_PARAM_HITCOLOR, COLOR_TEAL)
setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -540.0, 0, -550.0, 0)
 
local arr5 = {
{0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0},
{1, 1, 1, 1, 1, 1, 0, 0, 0},
{1, 1, 1, 1, 1, 1, 2, 0, 0},
{1, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0},
}
 
local area5 = createCombatArea(arr5)
setCombatArea(combat5, area5)

local combat6 = createCombatObject()
setCombatParam(combat6, COMBAT_PARAM_HITCOLOR, COLOR_TEAL)
setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -540.0, 0, -550.0, 0)

local arr6 = {
{0, 0, 0, 0, 0, 0 ,0},
{0, 0, 0, 0, 0, 0, 0},
{0, 1, 1, 1, 1, 1, 1},
{2, 1, 1, 1, 1, 1, 1},
{0, 1, 1, 1, 1, 1, 1},
{0, 0, 0, 0, 0, 0, 0},
}
 
local area6 = createCombatArea(arr6)
setCombatArea(combat6, area6)

local combat7 = createCombatObject()
setCombatParam(combat7, COMBAT_PARAM_HITCOLOR, COLOR_TEAL)
setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, -540.0, 0, -550.0, 0)
 
local arr7 = {
{0, 0, 0, 2, 0},
{0, 0, 1, 1, 1},
{0, 0, 1, 1, 1},
{0, 0, 1, 1, 1},
{0, 0, 1, 1, 1},
{0, 0, 1, 1, 1},
{0, 0, 1, 1, 1},
}
 
local area7 = createCombatArea(arr7)
setCombatArea(combat7, area7)

local combat8 = createCombatObject()
setCombatParam(combat8, COMBAT_PARAM_HITCOLOR, COLOR_TEAL)
setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC, -540.0, 0, -550.0, 0)
 
local arr8 = {
{0, 0, 1, 1, 1},
{0, 0, 1, 1, 1},
{0, 0, 1, 1, 1},
{0, 0, 1, 1, 1},
{0, 0, 1, 1, 1},
{0, 0, 1, 1, 1},
{0, 0, 0, 2, 0},
}
 
local area8 = createCombatArea(arr8)
setCombatArea(combat8, area8)

function ck3(cid)
    if getCreatureLookDirection(cid) == 1 then
        doCombat(cid, combat1, numberToVariant(cid))
        doCombat(cid, combat5, numberToVariant(cid))
        doPlayerSay(cid, 'MORRA!', TALKTYPE_ORANGE_1) 
    elseif getCreatureLookDirection(cid) == 3 then
        doCombat(cid, combat2, numberToVariant(cid))
        doCombat(cid, combat6, numberToVariant(cid))
        doPlayerSay(cid, 'MORRA!', TALKTYPE_ORANGE_1)
    elseif getCreatureLookDirection(cid) == 0 then   
        doCombat(cid, combat3, numberToVariant(cid))
        doCombat(cid, combat7, numberToVariant(cid))
        doPlayerSay(cid, 'MORRA!', TALKTYPE_ORANGE_1) 
    elseif getCreatureLookDirection(cid) == 2 then
        doCombat(cid, combat4, numberToVariant(cid))
        doCombat(cid, combat8, numberToVariant(cid))
        doPlayerSay(cid, 'MORRA!', TALKTYPE_ORANGE_1)
    end
end

function ck2(cid)
    doPlayerSay(cid, 'Receba toda minha energia!', TALKTYPE_ORANGE_1)                 
    addEvent(ck3,500,cid)
end

function ck1(cid)
    doPlayerSay(cid, 'Seu desgracado!', TALKTYPE_ORANGE_1)                 
    addEvent(ck2,500,cid)
end
  
function onCastSpell(cid, var)
    if exhaustion.check(cid, 13103) == TRUE then
        doPlayerSendCancel(cid, "Podera usar novamente dentro de 5 segundos.")
        doSendMagicEffect(getCreaturePosition(cid), 2)
        return false
    elseif exhaustion.check(cid, 13104) == TRUE then
        doPlayerSendCancel(cid, "You are exhauted.")
        doSendMagicEffect(getCreaturePosition(cid), 2)
        return false
    end
    addEvent(ck1,500,cid)
    exhaustion.set(cid, 13103, 5.0)
return true
end

 

 

 

 

 

 

tambem meu dbo tem 254 efeitos mais apenas uns 60 pega, como eu arrumo isso?

gabriel28G
27 de abril de 2018 às 13:29

@Emanueldk
Então é esse o problema. Provavelmente o executável não está com os efeitos adicionados, porque ela limpa só tem até 64, mais ou menos, dai tem que acrescentar mais direto na source.

EmanueldkE
27 de abril de 2018 às 18:22
4 horas atrás, gabriel28 disse:

@Emanueldk
Então é esse o problema. Provavelmente o executável não está com os efeitos adicionados, porque ela limpa só tem até 64, mais ou menos, dai tem que acrescentar mais direto na source.

e como faz isso?

gabriel28G
27 de abril de 2018 às 21:06

@Emanueldk

Ai você terá que ter os arquivos cpp e h da distro.

EmanueldkE
28 de abril de 2018 às 04:26

Eu posso pegar uma distro de um dbo e botar  o meu? Distro que tu fala é o iniciador do ot ne? Que dx ele on pra vc poder logar

gabriel28G
28 de abril de 2018 às 14:48

@Emanueldk
Sim, isso mesmo. Da pra você pegar a de outro e testar no seu. Creio que funcione sem erro, mas o ideal seria você ter a source, caso queira ir além dos 250 effects, mas pode testar desse jeito ai.

EmanueldkE
28 de abril de 2018 às 18:06

Brother eq eu nao manjo dms criar ot, nem sei oq é source, poderia me explicar melhor?

10 meses depois...
BennyB
20 de fevereiro de 2019 às 18:24
A questão neste suporte foi encerrada por falta de respostas. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta.

+ Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda.
* Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado.